const DButil = require('./DButil');
let connection = DButil.createConnection();
connection.connect();

function search(success){
    connection.query('select * from class',(err, result) => {
        success(result);
    })
}

module.exports.search = search;